const path = require('path');
const CompressionPlugin = require('compression-webpack-plugin');

module.exports = {
  mode: 'production',
  entry: {
    polyfill: 'babel-polyfill',
    fetch: 'isomorphic-fetch',
  },
  plugins: [
    new CompressionPlugin(),
  ],
  output: {
    path: path.join(__dirname, '../lib'),
    filename: '[name].js',
  },
};
